SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 11390: User-defined formats are ignored on OLAP cube measures at run-time

DetailsAboutRate It

If you have associated user-defined formats on measures within an OLAP cube, the formats will be ignored when data is returned from a query. The unformatted values will be returned instead. No warning or error will generated in the log.

To display the formatted values, you can use an IIF function:

iif([Measures].[Value] or [Measures].[Value] = 0, 
    PUT([Measures].[Value],"myfmt."), 
    "NO VALUE")

Any user-defined format referenced in this way must be accessible by the SAS® OLAP Server and stored in a permanent format catalog.

Beginning with SAS 9.2, most user-defined formats are supported. However, if a user-defined format references other formats, such as the ones in the following example, the formats will be ignored by the OLAP measure. The previous MDX expression is an appropriate alternative if you are using this type of format.

PROC FORMAT LIB=OLAPSAMP;
   VALUE hwgroup
         low -< 0.5 = [PERCENT8.2]
         0.50 - high = [8.2];
RUN;



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS OLAP ServerLinux9.1 TS1M09.3 TS1M0
HP-UX IPF9.1 TS1M09.3 TS1M0
64-bit Enabled Solaris9.1 TS1M09.3 TS1M0
64-bit Enabled HP-UX9.1 TS1M09.3 TS1M0
64-bit Enabled AIX9.1 TS1M09.3 TS1M0
Microsoft Windows XP Professional9.1 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M09.3 TS1M0
Microsoft Windows NT Workstation9.1 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M0
Microsoft Windows 2000 Server9.1 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M09.3 TS1M0
z/OS9.1 TS1M09.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M09.3 TS1M0
OpenVMS Alpha9.1 TS1M09.3 TS1M0
Tru64 UNIX9.1 TS1M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.